package com.xyh.transaction.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xyh.transaction.common.Constant;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseEntity {

    private Integer id;

    @JsonFormat(pattern = Constant.DATE_FORMAT_DEFAULT)
    private LocalDateTime createTime;

    @JsonFormat(pattern = Constant.DATE_FORMAT_DEFAULT)
    private LocalDateTime updateTime;

    private Integer createBy;

    private Integer updateBy;

}
